{% extends "base.html" %}

{% block page_header %}
	{{site.name}} logs
{% endblock %}

{% block content %}
	<ul class="breadcrumb">
 	     <li><a href="/django_logs">Home</a> <span class="divider">/</span></li>
 	     <li><a href="/django_logs/sites">Sites</a> <span class="divider">/</span></li>
	     <li class="/django_logs/reportdetails/{{site.id}}"> {{site.name}}</li>
        </ul>

   
    <div class="well well-large clearfix">
	Number of 404 responds: {{r404|length}}
    </div>
     
    <div class="well well-large clearfix">
	Number of 200 responds: {{r200|length}}
    </div>

    <div class="well well-large clearfix">
	Number of 50x responds: {{r50x|length}}
    </div>
   {% load chart_tags %}
    {% chart %}
	     chxr=0,0,160
	     chxt=y
	     chbh=a
	     chs=440x220
	     cht=bvs
	     chco=4D89F9
	     chds=0,30
	     chd=t:{{piechart_values|join:',' }}
 	     chl=404|200|50x
	     chtt=Response+code
    {% endchart %}


    {% chart %}
	chs=300x225
	cht=p3
	chco=0000FF|FF0000|008000|FF9900|990066|AA0033|4BD6E8,F40000|7777CC
        chd=t:{{piechart_values|join:',' }}
	chdl=404|200|50x
        chtt=Response+code
    {% endchart %}

{% endblock %}

